<%idx=1%>
<%@todos.each do |todo|%>
<%idx=1-idx%>
<div class="todopanel<%=idx%>">
<%if idx==0%>
  <table width="100%"><tr><td width="80px" style="text-align:center"><a href="<%=url_for event_path(todo.event) %>?KeepThis=true&TB_iframe=true&height=400&width=600" class="thickbox"><%=image_tag "icons/#{todo.event.indentifier}.png",:title=>todo.event.title,:border=>0%></a><br/><%=todo.updated_at.strftime('%y-%m-%d')%></td><td><%=h todo.description%></td></tr></table>
<%else%>
 <table width="100%"><tr><td><%=h todo.description%></td><td width="80px" style="text-align:center"><a href="<%=url_for event_path(todo.event) %>?KeepThis=true&TB_iframe=true&height=400&width=600" class="thickbox"><%=image_tag "icons/#{todo.event.indentifier}.png",:title=>todo.event.title,:border=>0%></a><br/><%=todo.updated_at.strftime('%y-%m-%d')%></td></tr></table>
<%end%>
</div>
<%end%>
